﻿using System;
using System.Collections.Generic;
using System.Text;

namespace PdfLib
{
    [Serializable]
    public class VerticalLine
    {
        private float _X;
        /// <summary></summary>
        public float X
        {
            get
            {
                return this._X;
            }
            set
            {
                this._X = value;
            }
        }
        private float _Y1;
        /// <summary></summary>
        public float Y1
        {
            get
            {
                return this._Y1;
            }
            set
            {
                this._Y1 = value;
            }
        }
        private float _Y2;
        /// <summary></summary>
        public float Y2
        {
            get
            {
                return this._Y2;
            }
            set
            {
                this._Y2 = value;
            }
        }

        public VerticalLine(float x, float y1, float y2)
        {
            this._X = x;
            this._Y1 = y1;
            this._Y2 = y2;
        }

        public bool Valid
        {
            get
            {
                if (X <= 0 && Y1 <= 0 && Y2 <= 0)
                    return false;
                else
                    return true;
            }
        }
    }
}
